package top.ywlog.permission.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.session.data.redis.config.ConfigureRedisAction;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author: Durian
 * @date: 2020/10/21 23:21
 * @description: 可以使用dev中的配置文件配置
 */
@Profile("pro")
@Configuration
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 60 * 20)
public class HttpSessionConfig
{
    @Bean
    public static ConfigureRedisAction configureRedisAction()
    {
        return ConfigureRedisAction.NO_OP;
    }
}
